<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Voya Media: DirectoryManagement Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Voya Media
   &#160;<span id="projectnumber">1.2.255.1212</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00002.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">DirectoryManagement Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Custom methods for Directory Operations.  
 <a href="a00002.html#details">More...</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a1799b4c602786a8468e3a79db8cbabdb"><td class="memItemLeft" align="right" valign="top">static List&lt; string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00002.html#a1799b4c602786a8468e3a79db8cbabdb">GetAllSubDirectoriesInDirectory</a> (string directoryPath, int maxSubDirectories=1000000)</td></tr>
<tr class="memdesc:a1799b4c602786a8468e3a79db8cbabdb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Replaces the default System.IO.Directory.GetDirectories() method with Recursive option since it throws System.IO.UnAuthorizedAccessException exceptions and "Access Denied" errors when parsing directories like "My Documents" because they contain Junction Points. This static method takes care of checking each file's attributes before returning it.  <a href="#a1799b4c602786a8468e3a79db8cbabdb"></a><br/></td></tr>
<tr class="memitem:a95c2b58d0f42c83f577e247e0d5af30b"><td class="memItemLeft" align="right" valign="top">static List&lt; string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00002.html#a95c2b58d0f42c83f577e247e0d5af30b">GetWindowsNetworkShares</a> ()</td></tr>
<tr class="memdesc:a95c2b58d0f42c83f577e247e0d5af30b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a string list of network shares in current computer's network/workgroup.  <a href="#a95c2b58d0f42c83f577e247e0d5af30b"></a><br/></td></tr>
<tr class="memitem:a84b22846ab7a40750701cf1e5e948199"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00002.html#a84b22846ab7a40750701cf1e5e948199">IsWindowsSystemDirectory</a> (string directoryPath)</td></tr>
<tr class="memdesc:a84b22846ab7a40750701cf1e5e948199"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the directory is a Windows system directory.  <a href="#a84b22846ab7a40750701cf1e5e948199"></a><br/></td></tr>
<tr class="memitem:aa8a5138729250fc00ca5b9906ce3bfae"><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00002.html#aa8a5138729250fc00ca5b9906ce3bfae">GetRuntimeExecutingPath</a> ()</td></tr>
<tr class="memdesc:aa8a5138729250fc00ca5b9906ce3bfae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the path from where current code is called from after it has been compiled and deployed. So if the code that calls this method is compiled into "C:\deploy\execute.exe", this method will return "C:\deploy", if it's later moved to "C:\new_dir\execute.exe", it will return "C:\new_dir".  <a href="#aa8a5138729250fc00ca5b9906ce3bfae"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Custom methods for Directory Operations. </p>

<p>Definition at line <a class="el" href="a00014_source.html#l00198">198</a> of file <a class="el" href="a00014_source.html">FileSystem.cs</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a1799b4c602786a8468e3a79db8cbabdb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static List&lt;string&gt; <a class="el" href="a00002.html#a1799b4c602786a8468e3a79db8cbabdb">GetAllSubDirectoriesInDirectory</a> </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>directoryPath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>maxSubDirectories</em> = <code>1000000</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Replaces the default System.IO.Directory.GetDirectories() method with Recursive option since it throws System.IO.UnAuthorizedAccessException exceptions and "Access Denied" errors when parsing directories like "My Documents" because they contain Junction Points. This static method takes care of checking each file's attributes before returning it. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">directoryPath</td><td>A string that defines the path of the directory to retrieve sub-directories from.</td></tr>
    <tr><td class="paramname">maxSubDirectories</td><td>An integer that defines the maximum amount of sub-directories to retrieve.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns a string List of all sub-directories found in the directory and sub directories.</dd></dl>

<p>Definition at line <a class="el" href="a00014_source.html#l00212">212</a> of file <a class="el" href="a00014_source.html">FileSystem.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aa8a5138729250fc00ca5b9906ce3bfae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static string <a class="el" href="a00002.html#aa8a5138729250fc00ca5b9906ce3bfae">GetRuntimeExecutingPath</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the path from where current code is called from after it has been compiled and deployed. So if the code that calls this method is compiled into "C:\deploy\execute.exe", this method will return "C:\deploy", if it's later moved to "C:\new_dir\execute.exe", it will return "C:\new_dir". </p>
<dl class="section return"><dt>Returns:</dt><dd>Returns a string representing the Runtime Executing Path.</dd></dl>

<p>Definition at line <a class="el" href="a00014_source.html#l00580">580</a> of file <a class="el" href="a00014_source.html">FileSystem.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a95c2b58d0f42c83f577e247e0d5af30b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static List&lt;string&gt; <a class="el" href="a00002.html#a95c2b58d0f42c83f577e247e0d5af30b">GetWindowsNetworkShares</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a string list of network shares in current computer's network/workgroup. </p>
<dl class="section return"><dt>Returns:</dt><dd></dd></dl>

<p>Definition at line <a class="el" href="a00014_source.html#l00360">360</a> of file <a class="el" href="a00014_source.html">FileSystem.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a84b22846ab7a40750701cf1e5e948199"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="a00002.html#a84b22846ab7a40750701cf1e5e948199">IsWindowsSystemDirectory</a> </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>directoryPath</em></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks if the directory is a Windows system directory. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">directoryPath</td><td>The directory path to validate.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>A Boolean: True or False.</dd></dl>

<p>Definition at line <a class="el" href="a00014_source.html#l00532">532</a> of file <a class="el" href="a00014_source.html">FileSystem.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="a00014_source.html">FileSystem.cs</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00025.html">FileSystem</a>      </li>
      <li class="navelem"><a class="el" href="a00002.html">DirectoryManagement</a>      </li>

    <li class="footer">Generated on Thu Jan 10 2013 07:05:20 for Voya Media by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
